package com.ruoyi.student_club.vo.app;

import lombok.Data;

import java.util.Date;

/**
 * @Author lin
 * @Date 2022/1/30 0:00
 */
@Data
public class ClubRecommendVo {

    private Integer id;

    private Long clubId;

    private String avatar;

    private String clubName;

    private Integer people;

    private Integer reader;

    private Date createTime;

    private Date updateTime;

    public void setAvatar(String avatar) {
        if (avatar != null && avatar.contains("upload")){
            this.avatar = avatar.substring(avatar.indexOf("upload")-1);
        }
    }

}
